//
//  SelfSizeTool.m
//  15_Work
//
//  Created by Apple on 16/8/4.
//  Copyright © 2016年 yh. All rights reserved.
//

#import "SelfSizeTool.h"

@implementation SelfSizeTool

+ (CGFloat)selfSizeWidthWithString:(NSString *)string height:(CGFloat)height font:(UIFont *)font {
    return [string boundingRectWithSize:CGSizeMake(CGFLOAT_MAX, height) options:NSStringDrawingUsesLineFragmentOrigin attributes:@{NSFontAttributeName: font} context:nil].size.width;
}



@end
